package com.ruoyi.walmart.service.items.impl;

import com.ruoyi.walmart.domain.Items.ReportItem;
import com.ruoyi.walmart.domain.auth.ShopAuth;
import com.ruoyi.walmart.mapper.Items.ReportItemMapper;
import com.ruoyi.walmart.service.items.ReportItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReportItemServiceImpl implements ReportItemService {

    @Autowired
    ReportItemMapper reportItemMapper;

    @Override
    public int insertAll(List<ReportItem> reportItemList) {
        return reportItemMapper.insertAll(reportItemList);
    }

    @Override
    public List<ReportItem> selectAll() {
        return reportItemMapper.selectAll();
    }

    @Override
    public int deleteAll() {
        return reportItemMapper.deleteAll();
    }
    /**
     * 报告下载完毕删除所有数据
     * @return
     */
    @Override
    public int deleteReportItem(ShopAuth shopAuth) {
        return reportItemMapper.deleteReportItem(shopAuth);
    }
}
